8 long long int GetIntVal(string strConvert
)
10 long long int intReturn
;
12 intReturn
= atoi(strConvert
.c_str());
24 int size
= strlen(num
);
25 long long int ReversedNumber
,Number
,diff
,divisor
;
26 Number
= GetIntVal(num
);
28 reverse(num
,num
+size
);
29 ReversedNumber
= GetIntVal(num
);
30 diff
= ReversedNumber
- Number
;
32 cout
<<ReversedNumber
<<" - "<<Number
<<" = "<<diff
<<" = 9 * "<<divisor
<<endl
;